// 控制暂无数据组件
const state = {
  emptyDataObj: {
    text: '暂无数据',
    status: false
  }
}
const getters = {
  emptyDataObj: state => state.emptyDataObj
}
const actions = {
  getEmptyDataObj ({commit}, obj) {
    commit('setEmptyDataObj', obj)
  }
}
const mutations = {
  setEmptyDataObj (state, obj) {
    state.emptyDataObj = obj
  }
}

export default {
  state,
  getters,
  actions,
  mutations
}
